<template>
<% if (data.importMethod === 'needed') { %>
  <el-config-provider
    :locale="$store.getters.language === 'zh' ? zhCn : en"
    size="small"
    :button="{ autoInsertSpace: true }">
    <router-view />
  </el-config-provider>
<% } else { %>
  <div>
    <router-view />
  </div>
<% } %>
</template>

<script setup>
import { onMounted } from 'vue'<% if (data.importMethod === 'needed') { %>
import { ElConfigProvider } from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import en from 'element-plus/dist/locale/en.mjs'<% } %>
import { handleResetPixelRatio } from '@/utils/screen-scale'
onMounted(() => {
  handleResetPixelRatio()
})
</script>

<style>
</style>
